package com.qingdai.emuns;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "商品")
public class CommodityDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Integer id;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "价格")
    private Double price;

    @Schema(description = "发货地址id")
    private Integer shippingAddressId;

    @Schema(description = "描述")
    private String wDescribe;

    @Schema(description = "所属商店id")
    private Integer shopId;

    //    ------------------------------
    @Schema(description = "所属商店名字")
    private String shopName;
}
